angular.module('music_listen', [])
    .controller('music_listenCtrl', function ($rootScope, $scope, httpUtil) {
        $scope.songList = [];
        $scope.radioList = [];

        //初始化播放列表
        init();
        function init() {
            var params = {
                type: '',
                firstIndex: 0,
                maxSums: 20
            };
            httpUtil.httpSend('Music_musicList.action', params, function(data){
                $scope.songList = data.data;
            });
            setTimeout(function () {
                var params = {
                    type: '25',
                    firstIndex: 0,
                    maxSums: 20
                };
                httpUtil.httpSend('Music_musicList.action', params, function(data){
                    $scope.radioList = data.data;
                });
            }, 500);
        }
    });